import {reactive} from "vue";
import { defineStore } from 'pinia';

const store= {
    state:reactive({
        tit:"",
        currentCom:0,
        showFooter:1
    }),

}
export default store
export const userStore = defineStore("userStore", {
    state: () => {
        return {
            userId: '',
            username: '',
        }
    },
})
export const addressStore = defineStore("addressStore", {
    state: () => {
        return {
            addressId: '',
        }
    },
})

export const foodStore = defineStore("foodStore", {
    state: () => {
        return {
            businessAndFoods:[],
            foods:[],
            totalPrice:0
        }
    },
})
